package hu.tortavar2.client.place;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class AddNewProductPlace extends MainPlace {

	private String page;
	
	public AddNewProductPlace(String token) {
		this.page = token;
	}
	
	public String getPage() {
		return page;
	}
	
	@Prefix("adm")
	public static class Tokenizer implements PlaceTokenizer<AddNewProductPlace> {

		@Override
		public AddNewProductPlace getPlace(String token) {
			return new AddNewProductPlace(token);
		}

		@Override
		public String getToken(AddNewProductPlace place) {
			return place.getPage();
		}
		
	}
}
